package com.zx.cloud.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@RefreshScope
@Component
public class ConfigUtil {

	/**
	 * 上传文件存储的绝对路径
	 */
	@Value("${static.http.file.path}")
	private String staticHttpFilePath;
	/**
	 * 上传文件存储的绝对路径
	 */
	@Value("${upload.absolute.file.path}")
	private String uploadAbsoluteFilePath;
	@Value("${qiniu.access_key}")
	private String qiNiuAccessKey;
	@Value("${qiniu.secret_key}")
	private String qiNiuSecretKey;
	@Value("${qiniu.bucketname}")
	private String qiNiuBucketname;
	@Value("${qiniu.access_url}")
	private String qiNiuAccessUrl;
	@Value("${jpush.master_secret}")
	private String jpushMasterSecret;
	@Value("${jpush.app_key}")
	private String jpushAppKey;

	public String getStaticHttpFilePath() {
		return staticHttpFilePath;
	}
	
	public String getUploadAbsoluteFilePath() {
		return uploadAbsoluteFilePath;
	}
	
	public String getQiNiuAccessUrl() {
		return qiNiuAccessUrl;
	}
	
	public String getQiNiuAccessKey() {
		return qiNiuAccessKey;
	}

	public String getQiNiuSecretKey() {
		return qiNiuSecretKey;
	}

	public String getQiNiuBucketname() {
		return qiNiuBucketname;
	}

	public String getJpushAppKey() {
		return jpushAppKey;
	}

	public String getJpushMasterSecret() {
		return jpushMasterSecret;
	}
	
}
